package com.app.service.impl;

import com.app.mapper.ReportMapper;
import com.app.model.ReportModel;
import com.app.service.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ReportServiceImpl implements ReportService {
    @Autowired
    private ReportMapper reportMapper;

    @Override
    public void insert(ReportModel reportModel) {
        reportMapper.insert(reportModel);
    }

    @Override
    public void update(ReportModel reportModel) {
        reportMapper.updateById(reportModel);
    }

    @Override
    public void deleteReportById(int id) {
        reportMapper.deleteById(id);
    }
}
